{include file=member.header.html}
<div class="deposit margin10"> 
	<!--{if $deposit_account}-->
	<div class="deposit-account">
		<div class="amount-overview mb10 pt10">
			<div class="action">
				<h2>账户名：{$deposit_account.account}</h2>
				<p class="mt10 clearfix"> <span><a  href="{url app=deposit&act=config}">账号配置</a></span> <span style="padding:0% 5%;"><a  href="{url app=deposit&act=recordlist}">收支明细</a></span> <span><a  href="{url app=deposit&act=drawlist}">充提记录</a></span> </p>
				<div class="clear"></div>
			</div>
			<div class="account-info">
				<h1>账户余额</h1>
				<div class="explain">余额支付[<em>?<span></span></em>]： 
					<!--{if $deposit_account.pay_status eq 'ON'}--> 
					<a href="javascript:;" class="J_AjaxRequest" action="{url app=deposit&act=pay_status&status=off}" confirm="点击后关闭余额支付功能，要确定么？">已开启>></a> 
					<!--{else}--> 
					<a href="javascript:;" class="J_AjaxRequest" action="{url app=deposit&act=pay_status&status=on}"  confirm="点击后开启余额支付功能，要确定么？">已关闭>></a> 
					<!--{/if}--> 
				</div>
				<div class="balanceNum"> <em>{$deposit_account.money|default:0}</em>元可用{if $deposit_account.frozen gt 0}，<b><a href="{url app=deposit&amp;act=frozenlist}">{$deposit_account.frozen}</a></b> 元不可用{/if}
					<div class="balanceBtn"> <a href="{url app=deposit&act=recharge}" class="btn-alipay-solid"><span>充值</span></a> <a href="{url app=deposit&act=withdraw}" class="btn-alipay-solid btn-alipay-solid-white"><span>提现</span></a> <a href="{url app=deposit&act=transfer}" class="btn-alipay-solid btn-alipay-solid-white"><span>转账</span></a> </div>
				</div>
			</div>
		</div>
		<div class="tradelist mb5">
			<div class="title clearfix">
				<h1 class="float-left">最近10条收支记录</h1>
				<div class="float-right"><a href="{url app=deposit&act=recordlist}">所有收支记录</a></div>
			</div>
		</div>
		<!--{if $recordlist}--> 
		<!--{foreach from=$recordlist item=record}-->
		<div class="table-list mb10">
			<ul>
				<li class="first clearfix"> <span class="th float-left"><em>日期</em></span> <span class="td float-left"><em>{$record.add_time|date:Y.m.d H:i:s}</em></span> </li>
				<li class="clearfix"> <span class="th float-left"><em>名称备注</em></span> <span class="td float-left"><em>{$record.name} {if $record.remark}<p class="gray">{$record.remark}</p>{/if}</em></span> </li>
				<li class="clearfix"> <span class="th float-left"><em>对方</em></span> <span class="td float-left"><em>{if $record.party_real_name}{$record.party_real_name}{elseif $record.purpose eq 'charge'}{$lang.platform}{else}{$record.payway}{/if}</em></span> </li>
				<li class="clearfix"> <span class="th float-left"><em>金额</em></span> <span class="td float-left"><em>{if $record.flow eq 'income'}<strong class="green">+{$record.amount}</strong> {else} <strong class="{if $record.refund}gray{else}f60{/if}">-{$record.amount}</strong> {/if}</em></span> </li>
				<li class="clearfix"> <span class="th float-left"><em>状态</em></span> <span class="td float-left"><em class="{if $record.status eq 'CLOSED'}gray{elseif $record.status eq 'WAIT_ADMIN_VERIFY' || $record.status eq 'FROZEN'}f60{/if}">{$record.status_label}</em></span> </li>
				<li class="clearfix"> <span class="th float-left"><em>查看</em></span> <span class="td float-left"><em class="detail"><a href="{url app=deposit&act=record&tradesn=$record.tradesn}">{$lang.detail}</a></em></span> </li>
			</ul>
		</div>
		<!--{/foreach}--> 
		<!--{/if}-->
		
		<div class="bank-info">
			<div class="clearfix">
				<h1>银行卡</h1>
				<div class="explain">已绑定<span>{$bank_list.count|default:0}</span>张</div>
				<div class="action"> <a href="{url app=bank&act=add}">+添加银行卡</a> </div>
			</div>
			<ul class="cards">
				<div class="clearfix">
					<!--{foreach from=$bank_list.list item=bank name=fe_bank}-->
					<li class="card">
						<div class="wrap cleaffix">
							<h2>{$bank.bank_name}</h2>
							<div class="hd">
								<div class="number">{$bank.num}</div>
								<div class="handle clearfix">
									<div class="card-type {$bank.type}"></div>
									<div class="card-handle"> <a href="{url app=bank&act=edit&short_name=$bank.short_name}">{$lang.edit}</a> <a href="javascript:;" class="J_AjaxRequest" confirm="{$lang.drop_confirm}" action="{url app=bank&act=drop&bid=$bank.bid}">{$lang.drop}</a> </div>
								</div>
							</div>
						</div>
					</li>
					<!--{/foreach}--> 
				</div>
			</ul>
		</div>
	</div>
	<!--{else}-->
	<div class="notice-word">
		<p>请先配置帐户，点击 <a href="{url app=deposit&act=config}">立即配置</a></p>
	</div>
	<!--{/if}--> 
</div>
<iframe id='iframe_post' name="iframe_post" src="about:blank" frameborder="0" width="0" height="0"></iframe>
{include file=footer.html} 